import request from '@/utils/request'

// 查询患者关系列表
export function listRelationship(query) {
    return request({
        url: '/keyan/relationship/list',
        method: 'get',
        params: query
    })
}

// 查询患者关系详细
export function getRelationship(id) {
    return request({
        url: '/keyan/relationship/' + id,
        method: 'get'
    })
}

// 新增患者关系
export function addRelationship(data) {
    return request({
        url: '/keyan/relationship',
        method: 'post',
        data: data
    })
}

// 修改患者关系
export function updateRelationship(data) {
    return request({
        url: '/keyan/relationship',
        method: 'put',
        data: data
    })
}

// 删除患者关系
export function delRelationship(id) {
    return request({
        url: '/keyan/relationship/' + id,
        method: 'delete'
    })
}
